import java.util.PriorityQueue;

public class Text {
    public static void main1(String[] args) {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(10);
    }
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TextHeap textHeap = new TextHeap();
        textHeap.initElem(array);
        textHeap.createBigHeap();
        /*System.out.println("===");
        //System.out.println(textHeap.poll());//删除堆
        //System.out.println("===");
        textHeap.offer(80);//插入数字并按大根堆排列
        System.out.println("=====");*/
        textHeap.heapSort();
        System.out.println("=========");
    }
}
